Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. # Include your customized HAL commands here
  2. # The commands in this file are run after the AXIS GUI (including PyVCP panel) starts
  3.  
  4. # **** Setup of spindle speed display using pyvcp -START ****
  5. # **** Use COMMANDED spindle velocity from LinuxCNC because no spindle encoder was specified
  6.  
  7. net spindle-cmd-rpm-abs => pyvcp.spindle-speed
  8.  
  9. # **** force spindle at speed indicator true because we have no feedback ****
  10.  
  11. net spindle-at-speed => pyvcp.spindle-at-speed-led
  12. sets spindle-at-speed true
  13.  
  14. # connect the X PyVCP buttons
  15. net my-jogxminus halui.jog.0.minus <= pyvcp.x-minus
  16. net my-jogxplus halui.jog.0.plus <= pyvcp.x-plus
  17.  
  18. # connect the Y PyVCP buttons
  19. net my-jogyminus halui.jog.1.minus <= pyvcp.y-minus
  20. net my-jogyplus halui.jog.1.plus <= pyvcp.y-plus
  21.  
  22. # connect the Z PyVCP buttons
  23. net my-jogzminus halui.jog.2.minus <= pyvcp.z-minus
  24. net my-jogzplus halui.jog.2.plus <= pyvcp.z-plus
  25.  
  26. # connect the PyVCP jog speed slider
  27. net my-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
  28.  
  29. # return to home safely
  30. net panel-safe-go-home <= halui.mdi-command-00 <= pyvcp.safe-go-home
  31.  
  32. # connect the probe to the script
  33. net panel-z-probe <= halui.mdi-command-01 <= pyvcp.z-probe
  34.  
  35. # connect the probe to the script
  36. net panel-p-hole <= halui.mdi-command-03 <= pyvcp.p-hole
  37.  
  38. # net remote-o100 halui.mdi-command-02 <= pyvcp.o100
  39.  
  40. net deb-probe-in => pyvcp.deb-probe-in
  41. net deb-xprox-in => pyvcp.deb-xprox-in
  42. net deb-yprox-in => pyvcp.deb-yprox-in
  43. net deb-zprox-in => pyvcp.deb-zprox-in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement